/*  
    app主体样式
*/

#app {
  overflow-y: hidden;

  /* 主体区域 */
  .main-container {
    position: relative;
    min-height: 100%;
    margin-left: 200px;
    padding: 0 20px 0 10px;
    transition: margin-left .28s;
  }

  /* 侧边栏 */
  .sidebar-container {
    transition: width .38s;
    width: 180px !important;
    height: calc(100vh - 80px);
    position: fixed;
    font-size: 0px;
    top: 70px;
    bottom: 0;
    left: 20px;
    z-index: 1;
    overflow: hidden;

    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;

      .el-scrollbar__view {
        height: 100%;

        .el-menu {
          // background-color: $color-side-bar-bg;

          /*  一层 */
          .el-submenu__title {
            height: 40px;
            line-height: 40px;
          }

          // >.el-menu-item.submenu-title-noDropdown {
          //   background-color: $color-side-bar-bg;
          // }

          /* 两层 */
          .nest-menu>.el-submenu>.el-submenu__title {
            height: 40px;
            line-height: 40px;
            padding-left: 50px !important;
            color: $light-font-color;
            // background-color: $color-side-bar-submenu-bg;

            // &:hover {
            //   color: $color-side-bar-hover;
            // }
          }

          .nest-menu>.el-menu-item {
            padding-left: 50px !important;
            // background-color: $color-side-bar-submenu-bg;
          }

          .el-menu-item {
            height: 40px;
            line-height: 40px;
          }

          // .el-menu-item.is-active {
          //   color: $color-side-bar-active !important;
          //   background-color: $color-side-bar-active-bg;
          // }

          .el-submenu__title {
            color: $dark-font-color;

            // &:hover {
            //   color: $color-side-bar-hover;
            //   background-color: $color-side-bar-bg;
            // }
          }

          .el-menu-item {
            color: $light-font-color;

            // &:hover {
            //   color: $color-side-bar-hover;
            // }
          }
        }
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
  }


  .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
  .sidebar-container .el-submenu .el-menu-item {
    min-width: 180px !important;
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: 180px !important;
  }

  /* 适配移动端 */
  .mobile {
    .sidebar-container {
      left: 10px;
      transition: transform .38s;
    }
  }

  /* 隐藏bar */
  .hideSidebar {
    .sidebar-container {
      width: 0 !important;
      transition: transform .38s;
    }

    .main-container {
      margin-left: 0;
      padding-left: 20px;
      transition: transform .38s;

      .navbar {
        display: none;
      }
    }
  }

  .mobile.hideSidebar {
    .main-container {
      margin-left: 0;
      padding-right: 10px;
      padding-left: 10px;
      transition: transform .38s;
    }
  }


  .mobile.closeSidebar {
    .main-container {
      margin-left: 46px;
      padding-right: 10px;
      transition: transform .38s;
    }
  }

  /* 头部padding */
  .mobile .top-wrapper .header-container {
    padding: 0 10px
  }

  /* 关闭bar */
  .closeSidebar {
    .sidebar-container {
      width: 36px !important;
    }

    .main-container {
      margin-left: 56px;
    }

    .submenu-title-noDropdown {
      padding-left: 10px !important;
      position: relative;

      .el-tooltip {
        padding: 0 10px !important;
      }
    }

    .el-submenu {
      overflow: hidden;

      &>.el-submenu__title {
        padding-left: 10px !important;

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }
}

.hasCheckbox {

  .el-table--border .el-table__cell:first-child .cell {
    padding: 0;
  }

}
